diff options
| author | Adam Soltys <[email protected]> | 2022-07-30 11:13:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-30 11:13:39 -0700 |
| commit | e183a44d5447037ea807698b08d5a9497891628b (patch) | |
| tree | d63cd5d45d45dae085704ead3eb306f80a3ebc46 /src/routes/invoice/[amount].js | |
| parent | e969501cbaeafaa5b81c20b73455ab19cde2eb0e (diff) | |
| download | coinos-ui-e183a44d5447037ea807698b08d5a9497891628b.tar.gz coinos-ui-e183a44d5447037ea807698b08d5a9497891628b.zip | |
get invoice by uuid
Diffstat (limited to 'src/routes/invoice/[amount].js')
| -rw-r--r-- | src/routes/invoice/[amount].js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/routes/invoice/[amount].js b/src/routes/invoice/[amount].js deleted file mode 100644 index 9e9678a6..00000000 --- a/src/routes/invoice/[amount].js +++ /dev/null @@ -1,12 +0,0 @@ -import { post } from '$lib/utils'; - -const username = 'bob', - network = 'lightning'; - -export async function GET({ params }) { - let { amount } = params; - let { text } = await post('/lightning/invoice', { amount }); - await post('/invoice', { invoice: { text, network }, user: { username } }); - - return { body: { amount, text } }; -} |
